package com.cskaoyan.mapper;

import com.cskaoyan.bean.PermissionInsert;
import com.cskaoyan.vo.permission.PermissionChildrenVo;
import com.cskaoyan.vo.permission.PermissionChildrenXVo;
import com.cskaoyan.vo.permission.SystemPermissionVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper {
    int insertOne(PermissionInsert.SystemPermissionsBean systemPermission);

    int insertTwo(PermissionInsert.SystemPermissionsBean.ChildrenBeanX childrenBeanX);

    int insertThree(PermissionInsert.SystemPermissionsBean.ChildrenBeanX.ChildrenBean child);

    List<Integer> selectRolePermission(Integer roleId);

    String selectPermissionAPIById(Integer id);

    List<SystemPermissionVo> selectOne();

    List<PermissionChildrenVo> selectTwo(Integer realId);

    List<PermissionChildrenXVo> selectThree(Integer realIdChild);

    int deletePermission(Integer roleId);

    List<PermissionChildrenXVo> selectAllThree();

    void addPermission(Integer id, Integer roleId);
}
